<%--
  Created by IntelliJ IDEA.
  User: 斋藤飞鸟の翼
  Date: 2020/11/10
  Time: 19:32
  To change this template use File | Settings | File Templates.
--%>
<%@include file="../common/IncludeTop.jsp"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div id="BackLink">
    <a href="main">Return to Main Menu</a>
</div>

<div id="Catalog">

    <h2>${sessionScope.category.name}</h2>

    <table>
        <tr>
            <th>Product ID</th>
            <th>Name</th>
        </tr>
        <!-- 循环 -->
       <c:forEach var="product" items="${sessionScope.productList}">
           <tr>
               <td>
                   <a href="product?productId=${product.productId}">${product.productId}</a>
               </td>
               <td>
                   ${product.name}
               </td>
           </tr>
       </c:forEach>
    </table>
</div>

<%@include file="../common/IncludeBottom.jsp"%>